package com.springboot.study.first;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @program: study
 * @description: 启动类
 * @author: chengqj
 * @create: 2019-07-09 09:18
 **/
@SpringBootApplication
public class FirstMain {
    public static void main(String[] args) {
        ConfigurableApplicationContext sp =
                SpringApplication.run(FirstMain.class, args);
        FirstService fs =  sp.getBean(FirstService.class);
        fs.helloFirst();
    }
}
